import { configureStore } from '@reduxjs/toolkit'
import testSlice from './testSlice';
import toastSlice from './toastSlice';
import userSlice from './userSlice';

const store = configureStore({
  // 用来注册其它分仓库 ， 相当于 vuex 里面的 modules
  reducer: {
    // 注册分仓库
    test: testSlice,
    user: userSlice,
    toast: toastSlice
  },
})

export default store;